// 持久化本地存储token
// export const setToken = (token) => {
//     localStorage.setItem("TOKEN", token);
// }

// export const getToken = () => {
//     return localStorage.getItem("TOKEN");
// }

// export const removeToken = () => {
//     return localStorage.removeItem("TOKEN");
// }

// 会话存储token（更合适）
export const setToken = (token) => {
    sessionStorage.setItem("TOKEN", token);
}

export const getToken = () => {
    return sessionStorage.getItem("TOKEN");
}

export const removeToken = () => {
    return sessionStorage.removeItem("TOKEN");
}
